<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script src="js/echarts.min.js"></script>
    <script src="js/zhejiang.js"></script>
    <h1>张繁荣</h1>
    <div id="main" style="width: 600px; height: 400px"></div>
    <script type="text/javascript">
      var char = echarts.init(document.getElementById("main"));
      var option = {
        visualMap: {
          right: 10,
          top: "center",
          min: 100,
          max: 1100,
          calculable: true,
          inRange: {
            color: ["#fedcbd", "#f47920"],
          },
        },
        series: [
          {
            type: "map",
            map: "浙江",
            roam: true,
            zoom: 1,
            data: [
              { name: "杭州市", value: 1036 },
              { name: "宁波市", value: 854.2 },
              { name: "温州市", value: 930 },
              { name: "嘉兴市", value: 480 },
              { name: "湖州市", value: 306 },
              { name: "绍兴市", value: 505.7 },
              { name: "金华市", value: 562.4 },
              { name: "衢州市", value: 221.8 },
              { name: "舟山市", value: 117.6 },
              { name: "台州市", value: 615 },
              { name: "丽水市", value: 221.3 },
            ],
            emphasis: {
              itemStyle: {
                areaColor: "aquamarine",
              },
            },
          },
        ],
      };
      char.setOption(option);
    </script>
  </body>
</html>